package ${packagePath}${repositoryPackage};

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import ${packagePath}vo.data.${entity}VO;

import java.util.List;

/**
* ES操作
* ${introduce}
*
* @author ${author}
* @date ${date}
*/
@Repository
public interface ${entity}Repository extends ElasticsearchRepository<${entity}VO, String> {

    /**
     * 根据租户id获取分页信息
     *
     * @param tenantId
     * @param wherePage
     * @return
     */
    Page<KanbanDeliveryVO> findBySpaceId(String tenantId, PageRequest wherePage);

    /**
     * 根据租户id查询
     * @param tenantId
     * @return
     */
    List<KanbanDeliveryVO> findBySpaceId(String tenantId);
}
